import {COMPREIFX, INDENTIFICATION, NAVIGATE_PARAMS} from "../../../libs/const/widget";
export const JSON = {
  isOnly: false,
  isModule: false,
  type: `${COMPREIFX}image`,
  sign: INDENTIFICATION.BASIC,
  style: {
    width: "100%",
    height: "275rpx",
    position: "relative",
    left: 0,
    right: 0,
    top: 0,
    bottom: 0,
    borderRadius: "",
    marginTop: "0rpx",
    marginBottom: "0rpx",
    marginLeft: "0rpx",
    marginRight: "0rpx",
    textAlign: 'left',
    overflow : 'hidden'
  },
  attribute: {
    src: '',
    ...NAVIGATE_PARAMS,
    cutMode : 'scaleToFill' // 裁剪模式 scaleToFill | aspectFit | aspectFill | widthFix | heightFix | top | bottom | center | left ...
  },
  events: {},
  items: [],
};
export const CONFIG = {
  isShow: true,
  sign: INDENTIFICATION.BASIC,
  type: `${COMPREIFX}image`,
  name: "图片",
  icon: "https://hyyxboss.oss-cn-shenzhen.aliyuncs.com/img/pub/lcdp/image.png",
  path: `/components/${COMPREIFX}image/index.vue`,
};

export default {
  JSON,
  CONFIG,
};
